<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>物流信息</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
</head>
<style>
    html,
    body {
        background-color: #fff;
    }

    .placeholder_div {
        background-color: #fbf9f9;
    }

    .padding {
        padding: 0 0.8rem;
    }

    .padding .wuliu_info {
        width: 100%;
        color: #565656;
        border-bottom: 1px solid #e8e8e8;
    }

    .padding .wuliu_info .kuaidiname {
        padding-top: 1rem;
        font-size: 0.7rem;
    }

    .padding .wuliu_info .order_num {
        margin-top: 0.3rem;
        font-size: 0.6rem;
        padding-bottom: 0.5rem;
    }

    .wuliu .wuliu_detail {
        padding: 0 0.8rem;
        position: relative;

    }

    .wuliu .wuliu_detail:first-child {
        margin-top: 1.5rem;
    }

    .wuliu .wuliu_detail:last-child .wuliu_place {
        border-left: none;
    }

    .wuliu_time {
        width: 4.5rem;
        color: #565656;
        font-size: 0.7rem;
        display: inline-block;
        text-align: right;
        padding-bottom: 1.5rem;
        margin-right: 1rem;
    }

    .wuliu_place {
        display: inline-block;
        color: #565656;
        font-size: 0.7rem;
        width: 10rem;
        text-align: left;
        border-left: 1px solid #e8e8e8;
        /* border-width: 80%; */
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        margin-bottom: -0.5rem;
    }

    .wuliu_place_item {
        margin-top: -0.5rem;
    }

    .wuliu_time .date {
        line-height: 1.2rem;
    }

    .wuliu_detail img {
        width: 0.7rem;
        height: 0.7rem;
        display: inline-block;
        position: absolute;
        top: 0.2rem;
        left: 6.2rem;
    }

    .kuaidi_contact {
        font-size: 0.6rem;
        padding-bottom: 0.5rem;
    }
</style>

<body>
    <div  id="app" v-cloak>
        <div class="placeholder_div"></div>

        <div class="padding">
            <div class="wuliu_info" v-if="wuliu_info">
                <p class="kuaidiname">
                    顺丰速运快递
                </p>
                <p class="order_num" v-for="dan in wuliu_info.routeResps">
                    快递单号：{{dan.mailNo}}
                </p>
                <!-- <p class="kuaidi_contact">
                    快递联系人：何侯1887026455
                </p> -->
            </div>
            <div class="wuliu_info" v-else>
              暂无物流信息
            </div>
        </div>

        <div class="wuliu">
            <div class="wuliu_detail" v-for="item in wuliu_info.routeResps">
              <div v-for="i in item.routes">
                <div class="wuliu_time">
                    <div class="date">
                        {{i.acceptTime}}
                    </div>
                </div>
                <img src="../image/wuliu_ciecle_red.png" alt="">
                <div class="wuliu_place">
                    <div class="wuliu_place_item">
                        <p>{{i.acceptAddress}}</p>
                        {{i.remark}}
                    </div>
                </div>
              </div>
            </div>

        </div>
    </div>
</body>

</html>
<script src="../script/set_root.js"></script>

<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript" src="../script/hb.js"></script>
<script type="text/javascript" src="../script/vue.js"></script>
<script type="text/javascript">
    apiready = function () {
        hb_ready();

        get_ajax("order/shunfeng/query", {
            trackingNumber: api.pageParam.id
        }, function (res, err) {
            if (res.code == 200) {
                //alert(JSON.stringify(res.data))
                app.wuliu_info = res.data.msgData
            }// } else {
            //     alert(JSON.stringify(err))
            // }
        })
    }
    //使用vue对数据进行绑定
    var app = new Vue({
        el: '#app',
        data: {
            wuliu_info: "",
        },
        methods: {

        },

    })
</script>
